<html><head><title>WindowBounds</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">WindowBounds()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>WindowBounds</b></font>(#Window, MinimumWidth, MinimumHeight, MaximumWidth, MaximumHeight)  </blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Changes the minimal and maximal #Window dimensions (in pixels). This is useful to prevent a window from 
becoming too small or too big when the user resizes it. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Window</i></td>
<td width="90%"> 
The window to use. 

</td></tr>
<tr><td><i>MinimumWidth</i></td>
<td> 
The minimum width of the window. If sets to <font color="#924B72">#PB_Ignore</font>, the current minimum width value is not changed. 
If sets to <font color="#924B72">#PB_Default</font>, the minimum width value is reset to the system default (as it was before calling 
this command). 

</td></tr>
<tr><td><i>MinimumHeight</i></td>
<td> 
The minimum height of the window. If sets to <font color="#924B72">#PB_Ignore</font>, the current minimum height value is not changed. 
If sets to <font color="#924B72">#PB_Default</font>, the minimum height value is reset to the system default (as it was before calling 
this command). 

</td></tr>
<tr><td><i>MaximumWidth</i></td>
<td> 
The maximum width of the window. If sets to <font color="#924B72">#PB_Ignore</font>, the current maximum width value is not changed. 
If sets to <font color="#924B72">#PB_Default</font>, the maximum width value is reset to the system default (as it was before calling 
this command). 

</td></tr>
<tr><td><i>MaximumHeight</i></td>
<td> 
The maximum height of the window. If sets to <font color="#924B72">#PB_Ignore</font>, the current maximum height value is not changed. 
If sets to <font color="#924B72">#PB_Default</font>, the maximum height value is reset to the system default (as it was before calling 
this command). 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenWindow</font>(0, 0, 0, 300, 300, "Resize me !", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font> | <font color="#924B72">#PB_Window_SizeGadget</font>)
<font color="#006666">    WindowBounds</font>(0, 200, 200, 400, 400)

    <b><font color="#006666">Repeat</font></b>
      Event =<font color="#006666"> WaitWindowEvent</font>()
    <b><font color="#006666">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=waitwindowevent.html>WaitWindowEvent()</a> - <a href=index.html>Window Index</a> - <a href=windowevent.html>WindowEvent()</a> ->

</body></html>